package gew.data;

import java.util.ArrayList;

public class IndicatorSummaryItem {
    
    private final int index;
    private final int countryId;
    private final String countryName;
    private final String countryUrl;
    private final ArrayList<IndicatorSummaryItemDetail> details;

    public IndicatorSummaryItem(int index, int countryId, String countryName, String countryUrl) {
        this.index = index;
        this.countryId = countryId;
        this.countryName = countryName;
        this.countryUrl = countryUrl;
        this.details = new ArrayList<>();
    }

    public int getCountryId() {
        return countryId;
    }

    public String getCountryName() {
        return countryName;
    }

    public String getCountryUrl() {
        return countryUrl;
    }

    public Iterable<IndicatorSummaryItemDetail> getDetails() {
        return details;
    }

    public void addDetail(IndicatorSummaryItemDetail item) {
        details.add(item);
    }

    public int getIndex() {
        return index;
    }    
}
